package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository // 加和不加没有影响
public interface PermissionDao {


    List<Permission> findPermissionsByRoleId(Integer roleId);

    void add(Permission permission);

    Page<Permission> selectByCondition(String queryString);

    long findCountByCheckItemId(Integer id);

    void deleteById(Integer id);

    Permission findPermissionById(Integer id);

    void edit(Permission permission);

    List<Permission> findAll();
    List<Permission> findPermissionByRoleId(Integer roleId);

}
